package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.dao.TimeLineDao;
import com.example.domain.TimeLine;
import com.example.service.TimeLineService;

@Service
public class TimeLineServiceImpl implements TimeLineService {

	@Autowired
	private TimeLineDao timeLineDao;
	
	@Override
	public TimeLine findById(Integer id) {
		return timeLineDao.findById(id);
	}

	@Override
	public List<TimeLine> findAll() {
		return timeLineDao.findAll();
	}

	@Override
	public int insert(TimeLine timeLine) {
		return timeLineDao.insert(timeLine);
	}

}
